package me.yricky.alia.ui

import androidx.compose.runtime.Composable
import androidx.compose.ui.window.WindowState

/**
 * @author Yricky
 * @date 2022/1/29
 */
abstract class WindowInst {
    abstract fun tag():String

    @Composable
    abstract fun window()

    override fun hashCode(): Int {
        return tag().hashCode()
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false
        return hashCode() == other.hashCode()
    }
}